const express = require("express");
const app = express();
const cors = require('cors');
app.use(cors())

app.use(express.static('public'));

app.get("/a", (req,res) => {
	res.json({
		t: 200
	})
})


process.on('uncaughtException', (err) => {
    console.error('未捕获的异常', err.message);
})

app.listen(80, () => {
    console.log('------启动成功--------')
})